/*
 * @Date: 2024-03-27 18:29:07
 * @LastEditors: bingkui.wu
 * @LastEditTime: 2024-04-07 09:34:08
 * @Description: 用户token信息
 */
import mongoose, { Schema, Model, Document } from 'mongoose';

export interface IToken extends Document {
    value: string,
    expires_in: number,
    createTime: number,
    type: string,
}

export interface ITokenModel extends Model<IToken> {
}

const schema = new Schema({
    value: String,
    expires_in: Number,
    createTime: Number,
    type: String,
});

export const Token = mongoose.model<IToken>('token', schema) as ITokenModel;
